<html>
<head>
<script>
	function ver_password(){
		if(document.getElementById('passwd').type == 'text'){
			document.getElementById('passwd').type = 'password'
		}else{
			document.getElementById('passwd').type = 'text'	
		}
	}
	

function check_quick_add(obj){
				
	if(obj.name.value ==''){
							
		alert('Debe indicar el Nombre');
							
		obj.name.focus();
							
		return false;
						
	}
						
						
	if(obj.passwd.value ==''){
							
		alert('Debe indicar la contraseña');
							
		obj.passwd.focus();
							
		return false;
						
	}
						
							
	return true;
}	
</script>
<script type="text/javascript" lang="javascript" src="../tools/modal/jquery-1.3.2.min.js"></script>
<script src="../js/jquery.maskedinput-1.2.2.js"></script>
    <script>
	$(document).ready(function(){
		if($("#phone1"))
			$("#phone1").mask("****-****");
		
	}); 
	</script>
</head>
<body>
<form id="form1" name="form1" method="post" onSubmit="return check_quick_add(this)" action="/core/users.php">
  <table width='50%' border='0' align="left"  >
    <tr>
      <td width="16%" class="texto"><div align="left"><strong>Nombre:</strong>
        <input type='hidden' name='id_user' value='<? echo $id_user;?>' />
      </div></td>
    </tr>
    <tr>
      <td class="texto"><input name='name' type='text' class="contenido_forma" id="name" value='<? echo $name;?>' size="40" /></td>
    </tr>
    <tr>
      <td class="texto"><strong>Tel&eacute;fono:</strong></td>
    </tr>
    <tr>
      <td class="texto"><input name='phone1' type='text'  id="phone1" value='<? echo $phone1;?>' size="10" /></td>
    </tr>
    <tr>
      <td class="texto"><div align="left"><strong>E-mail</strong></div></td>
    </tr>
    <tr>
      <td class="texto"><input class="contenido_forma" name='email' type='text' value='<? echo $email;?>' size="40" /></td>
    </tr>
    <tr>
      <td class="texto"><strong>Contrase&ntilde;a</strong></td>
    </tr>
    <tr>
      <td class="etiqueta_form2"><input name='passwd' type='password' class="contenido_forma" id="passwd" value='<? echo $passwd;?>' />
        <a href="javascript:ver_password()">Ver</a></td>
    </tr>
    <tr>
      <td align='center'><input type='submit' name='quick_add' value='Create Owner' id="quick_add" />
      &nbsp;<input type='button' name='quick_add2' value='Cancelar' onClick="parent.$.modal().close();" id="quick_add2" /></td>
    </tr>
  </table>
</form>
</body>
</html>